package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 返利表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-03-28
 */
@TableName("wz_map_rebate")
public class WzMapRebate extends Model<WzMapRebate> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "map_rebate_id", type = IdType.ID_WORKER)
    private Long mapRebateId;
    /**
     * 店铺id
     */
    @TableField("adv_map_id")
    private Long advMapId;
    /**
     * 券库id
     */
    @TableField("coupon_market_id")
    private Long couponMarketId;
    /**
     * 券id
     */
    @TableField("coupon_id")
    private Long couponId;
    /**
     * 拼单图片
     */
    private String pic;
    /**
     * 商户logo
     */
    @TableField("merchant_logo")
    private String merchantLogo;
    /**
     * 商户名称
     */
    @TableField("merchant_name")
    private String merchantName;
    /**
     * 商户编号
     */
    @TableField("merchant_user_code")
    private Long merchantUserCode;
    /**
     * 优惠信息
     */
    private String benefit;
    /**
     * 返利价
     */
    @TableField("rebate_price")
    private Integer rebatePrice;
    /**
     * 原价
     */
    private Integer price;
    /**
     * 需分享人数
     */
    @TableField("need_share_number")
    private Integer needShareNumber;
    /**
     * 是否推荐：0-否；1-是；
     */
    @TableField("is_recommend")
    private Integer isRecommend;
    /**
     * 推荐排序
     */
    private Integer sort;
    /**
     * 状态：1-编辑中；2-审核中；3-审核驳回；4-审核通过；5-发布中；6-下架;7-过期；
     */
    private Integer status;
    /**
     * 一级分类
     */
    @TableField("adv_map_category_first")
    private String advMapCategoryFirst;
    /**
     * 开始时间
     */
    @TableField("begin_time")
    private Date beginTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 销量
     */
    private Integer sales;
    /**
     * 每单限购数量
     */
    @TableField("limit_number")
    private Integer limitNumber;
    /**
     * 驳回理由
     */
    @TableField("reject_remark")
    private String rejectRemark;
    /**
     * 发布地区
     */
    @TableField("ad_code")
    private String adCode;
    /**
     * 分享链接
     */
    @TableField("share_link")
    private String shareLink;
    /**
     * 返利活动类型：1-自己的券；2-别人的券
     */
    private Integer type;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    @Version
    private Integer version;


    public Long getMapRebateId() {
        return mapRebateId;
    }

    public void setMapRebateId(Long mapRebateId) {
        this.mapRebateId = mapRebateId;
    }

    public Long getAdvMapId() {
        return advMapId;
    }

    public void setAdvMapId(Long advMapId) {
        this.advMapId = advMapId;
    }

    public Long getCouponMarketId() {
        return couponMarketId;
    }

    public void setCouponMarketId(Long couponMarketId) {
        this.couponMarketId = couponMarketId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getMerchantLogo() {
        return merchantLogo;
    }

    public void setMerchantLogo(String merchantLogo) {
        this.merchantLogo = merchantLogo;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public Long getMerchantUserCode() {
        return merchantUserCode;
    }

    public void setMerchantUserCode(Long merchantUserCode) {
        this.merchantUserCode = merchantUserCode;
    }

    public String getBenefit() {
        return benefit;
    }

    public void setBenefit(String benefit) {
        this.benefit = benefit;
    }

    public Integer getRebatePrice() {
        return rebatePrice;
    }

    public void setRebatePrice(Integer rebatePrice) {
        this.rebatePrice = rebatePrice;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNeedShareNumber() {
        return needShareNumber;
    }

    public void setNeedShareNumber(Integer needShareNumber) {
        this.needShareNumber = needShareNumber;
    }

    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAdvMapCategoryFirst() {
        return advMapCategoryFirst;
    }

    public void setAdvMapCategoryFirst(String advMapCategoryFirst) {
        this.advMapCategoryFirst = advMapCategoryFirst;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getLimitNumber() {
        return limitNumber;
    }

    public void setLimitNumber(Integer limitNumber) {
        this.limitNumber = limitNumber;
    }

    public String getRejectRemark() {
        return rejectRemark;
    }

    public void setRejectRemark(String rejectRemark) {
        this.rejectRemark = rejectRemark;
    }

    public String getAdCode() {
        return adCode;
    }

    public void setAdCode(String adCode) {
        this.adCode = adCode;
    }

    public String getShareLink() {
        return shareLink;
    }

    public void setShareLink(String shareLink) {
        this.shareLink = shareLink;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.mapRebateId;
    }

    @Override
    public String toString() {
        return "WzMapRebate{" +
        "mapRebateId=" + mapRebateId +
        ", advMapId=" + advMapId +
        ", couponMarketId=" + couponMarketId +
        ", couponId=" + couponId +
        ", pic=" + pic +
        ", merchantLogo=" + merchantLogo +
        ", merchantName=" + merchantName +
        ", merchantUserCode=" + merchantUserCode +
        ", benefit=" + benefit +
        ", rebatePrice=" + rebatePrice +
        ", price=" + price +
        ", needShareNumber=" + needShareNumber +
        ", isRecommend=" + isRecommend +
        ", sort=" + sort +
        ", status=" + status +
        ", advMapCategoryFirst=" + advMapCategoryFirst +
        ", beginTime=" + beginTime +
        ", endTime=" + endTime +
        ", sales=" + sales +
        ", limitNumber=" + limitNumber +
        ", rejectRemark=" + rejectRemark +
        ", adCode=" + adCode +
        ", shareLink=" + shareLink +
        ", type=" + type +
        ", createTime=" + createTime +
        ", version=" + version +
        "}";
    }
}
